<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动让出空间</title>
    <!--
    深入理解浮动：不在同一层
    -->
    <style type="text/css">
        .div1{
            width:60px;
            height:40px;
            background-color: pink;
            float: left;
        }
        .div2{
            width:160px;
            height:50px;
            background-color: silver;
            float: left;
        }
        .div3{
            width:190px;
            height:80px;
            background-color: blue;
        }
    </style>
</head>
<body>
<div class="div1">div1</div>
<div class="div2">div2</div>
<div class="div3">div3</div>
</body>
</html>